export default[
    {
        type: "selection",
        minWidth: 60,
        maxWidth:60,
        align: "center",
        fixed: "left"
    },
    {
        title: "启用停用",
        key: "ifDisable",
        minWidth: 120,
        fixed: "left",
        slot: "ifDisable",
    },
    {
        title: "状态",
        key: "isEnableRule",
        minWidth: 120,
        slot: "isEnableRule",
    },
    {
        title: "层级",
        key: "attachmentClass",
        minWidth: 120,
        render: (h, params) => {
            let enable = '';
            let arr = params.row.attachmentClass;
            if(arr===1){
                enable = '大类';
            }else if(arr===2){
                enable = '组';
            }else if(arr===3){
                enable = '小类';
            }
            return h('div', {
                domProps: {
                    innerHTML: enable
                }
            })
        }
    },
    {
        title: "业务节点",
        key: "busiNode",
        minWidth: 120,
        type: 'singleSelect',
        dicKey: 'busiNode',
        dicData: [],
        require:false,
        readOnly: false,
        maxlength:32,
        placeholder:'请选择',
        columnShow:true
    },
    {
        title: "名称",
        key: "attachmentName",
        minWidth: 120,
    },
    {
        title: "内含项目数",
        key: "itemNum",
        minWidth: 120,
    },
    {
        title: "是否归档",
        key: "isArchive",
        minWidth: 120,
        type: 'singleSelect',
        dicKey: 'isArchive',
        dicData: [],
        require:false,
        readOnly: false,
        maxlength:32,
        placeholder:'请选择',
        columnShow:true
    },
    {
        title: "唯一标识",
        key: "uniqueCode",
        minWidth: 120,
        type: 'singleSelect',
        dicKey: 'attachmentUniqueCode',
        dicData: [],
        require:false,
        readOnly: false,
        maxlength:32,
        placeholder:'请选择',
        columnShow:true
    },
    {
        title: "必传类型",
        key: "needType",
        minWidth: 120,
        type: 'singleSelect',
        dicKey: 'needType',
        dicData: [],
        require:false,
        readOnly: false,
        maxlength:32,
        placeholder:'请选择',
        columnShow:true
    },
    {
        title: "文件最大数",
        key: "maxFileNums",
        minWidth: 120,
    },
    {
        title: "文件最小数",
        key: "minFileNums",
        minWidth: 120,
    },
    {
        title: "生效日期起",
        key: "effectiveDateStart",
        minWidth: 120,
    },
    {
        title: "生效日期止",
        key: "effectiveDateEnd",
        minWidth: 120,
    },
    {
        title: "上级",
        key: "parentId",
        minWidth: 120,
    },
    {
        title: "排序值",
        key: "sortOrder",
        minWidth: 120,
    },
    {
        title: "同步状态",
        key: "synchronizationState",
        minWidth: 120,
        type: 'singleSelect',
        dicKey: 'synchronizationState',
        dicData: [],
        require:false,
        readOnly: false,
        maxlength:32,
        placeholder:'请选择',
        columnShow:true
    },
    {
        title: "操作",
        key: "action",
        minWidth: 220,
        align: "center",
        fixed: "right",
        slot: "action"
    }
]
